#include "stdio.h"

//返回数组中的最小值
int minimum(int[10]);

int main(int argc, char const *argv[]) {
  printf("please input 10 numbers\n");
  int values[10];
  for (int i = 0; i < 10; i++) {
    scanf("%i",&values[i] );
  }
  printf("the min number is %i\n", minimum(values));
  return 0;
}

int minimum(int values[10]){
  int minValue = values[0];
  for (int i = 1; i < 10; i++) {
    if(values[i] < minValue){
      minValue = values[i];
    }
  }
  return minValue;
}
